package com.gqb.Advice;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class AroundAspect {
	
	@Around("execution(* com.gqb.Advice.Greet*.*(..))")
	public Object around(ProceedingJoinPoint joinPoint) throws Throwable{
//		before();
		Object object= joinPoint.proceed();
//		after();
		return object;
	}
	public void before(){
		System.out.println("aroundbefore");
	}
	public void after(){
		System.out.println("arounfafter");
	}
}
